<!--
 * @Author: your name
 * @Date: 2021-04-02 21:32:50
 * @LastEditTime: 2021-04-05 21:24:24
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \01-入门\00-个人博客\src\components\ImageLoader\text.vue
-->
<template>
  <div id="app">
    <ImageLoader
      src="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?fit=crop&crop=entropy&w=3456&h=2304"
      placeholder="https://images.pexels.com/photos/33109/fall-autumn-red-season.jpg?w=100"
      :duration="500"
      @load="imgLoad"
    />
  </div>
</template>

<script>
import ImageLoader from "./";
export default {
  name: "App",

  components: {
    ImageLoader,
  },
  methods: {
    imgLoad() {
      console.log("图片加载完毕");
    },
  },
};
</script>

<style lang="less">
#app {
  width: 500px;
  height: 300px;
}
</style>
